package huiji;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;

public class ImageUtil {

    static public BufferedImage gainImage(String path){
        try{
            return ImageIO.read(ClassLoader.getSystemResource(path));
        }catch (Exception e){
            return null;
        }

    }
}
